TEMPLATE    =   lib
CONFIG      +=  debug c++11
CONFIG      +=  qt
TARGET      =   PluginDemo
QT          +=  core gui widgets
DEFINES     +=  PLUGINDEMO_API

include(./PluginDemo.pri)

win32{
    INCLUDEPATH +=  ./ \
                    ../ \
    Release:DESTDIR      =   ../../output/bin/plugins
    Release:MOC_DIR     =   ./release/moc
    Release:RCC_DIR     =   ./release/rcc
    Release:UI_DIR      =   ./release/qui
    Release:OBJECTS_DIR =   ./release/obj

    Release:LIBS        +=  \
                        -L../../output/bin -lPluginManager \
                        -L../../output/bin -lMainWindow \

    Debug:CONFIG      +=    console
    Debug:DESTDIR      =   ../../output/bin_d/plugins
    Debug:MOC_DIR     =   ./debug/moc
    Debug:RCC_DIR     =   ./debug/rcc
    Debug:UI_DIR      =   ./debug/qui
    Debug:OBJECTS_DIR =   ./debug/obj

    Debug:LIBS        +=  \
                        -L../../output/bin_d -lPluginManager \
                        -L../../output/bin_d -lMainWindow \

    message("Windows PluginDemo build")
}

unix{
    INCLUDEPATH +=  ./ \
                    ../ \
    DESTDIR      =   ../../output/bin/plugins
    MOC_DIR     =   ./release/moc
    RCC_DIR     =   ./release/rcc
    UI_DIR      =   ./release/qui
    OBJECTS_DIR =   ./release/obj

    Release:LIBS        +=  \
                        -L../../output/bin -lPluginManager \
                        -L../../output/bin -lMainWindow \

    message("Linux PluginDemo build")
}